/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.io.Serializable;

/**
 *
 * @author Hippolyte
 */
public class Legume implements Serializable{

    private String nom;
    
    private int prix;

    public Legume() {
        this.nom = "";
        this.prix = 0;
    }

    public Legume(String unNom, int unPrix) {
        this.nom = unNom;
        this.prix = unPrix;
    }

    public String getNom() {
        return this.nom;
    }

    public void setNom(String unNom) {
        this.nom = unNom;
    }

    /**
     * @return the prix
     */
    public int getPrix() {
        return prix;
    }

    /**
     * @param prix the prix to set
     */
    public void setPrix(int prix) {
        this.prix = prix;
    }
}
